package svg.hw.app;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
 
public class newFP extends JFrame {
 
	//JButton button;
	
  public newFP(  ) {
    super("test");
    
    Icon icon = new ImageIcon("images/animA.gif");
    JButton button = new JButton(icon);
  /*  JButton button = new JButton(icon);
    button.addActionListener(new ActionListener(  ) {
      public void actionPerformed(ActionEvent ae) {
    	  //Icon icon = new ImageIcon("animA.gif");
    	    System.out.println("Learn");
      }
    });
    */
    Container content = getContentPane(  );
    content.setLayout(new FlowLayout(  ));
    content.add(button);
  }
 
  /*public static void main(String[] args) {
    JFrame f = new newFP(  );
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setSize(550, 400);
    f.setVisible(true);
  }*/
}
